<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Tj2's Blog">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>绿萝间 (old posts, page 5) | 绿萝间</title>
<link href="assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
<link href="assets/css/ipython.min.css" rel="stylesheet" type="text/css">
<link href="assets/css/nikola_ipython.css" rel="stylesheet" type="text/css">
<meta name="theme-color" content="#5670d4">
<meta name="generator" content="Nikola (getnikola.com)">
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml">
<link rel="canonical" href="https://muxuezi.github.io/index-5.html">
<link rel="prev" href="index-6.html" type="text/html">
<link rel="next" href="index-4.html" type="text/html">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
    tex2jax: {
        inlineMath: [ ['$','$'], ["\\(","\\)"] ],
        displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
        processEscapes: true
    },
    displayAlign: 'center', // Change this to 'center' to center equations.
    "HTML-CSS": {
        styles: {'.MathJax_Display': {"margin": 0}}
    }
});
</script><!--[if lt IE 9]><script src="assets/js/html5.js"></script><![endif]-->
</head>
<body>
<a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>

<!-- Menubar -->

<nav class="navbar navbar-inverse navbar-static-top"><div class="container">
<!-- This keeps the margins nice -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-navbar" aria-controls="bs-navbar" aria-expanded="false">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="https://muxuezi.github.io/">

                <span id="blog-title">绿萝间</span>
            </a>
        </div>
<!-- /.navbar-header -->
        <div class="collapse navbar-collapse" id="bs-navbar" aria-expanded="false">
            <ul class="nav navbar-nav">
<li>
<a href="archive.html">Archive</a>
                </li>
<li>
<a href="categories/">Tags</a>
                </li>
<li>
<a href="rss.xml">RSS feed</a>

                
            </li>
</ul>
<ul class="nav navbar-nav navbar-right"></ul>
</div>
<!-- /.navbar-collapse -->
    </div>
<!-- /.container -->
</nav><!-- End of Menubar --><div class="container" id="content" role="main">
    <div class="body-content">
        <!--Body content-->
        <div class="row">
            
            

    
<div class="postindex">
    <article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/grub4dos-for-ubuntu-on-disk.html" class="u-url">grub4dos-for-ubuntu-on-disk</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/grub4dos-for-ubuntu-on-disk.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>http://blog.163.com/fuhaocn@126/blog/static/366650802011112010920932/
1：ubuntu-9.04-desktop-i386.iso  </p>
<p>2：grub.exe；grldr；menu.lst; initrd.lz；vmlinuz； 备注：ubuntu-9.04-desktop-i386.iso 是ubuntu系统ISO安装文件; initrd.lz，vmlinuz，两个文件可以到ubuntu-9.04-beta-desktop-i386.iso 里面的 casper 文件夹里面找到，然后解压到C：盘根目录下，也就是C：下； </p>
<p>grub.exe，grldr 可以到网上下载，也可以在本文附件里下载, 将它们同样也放入C根目录下； menu.lst，要自己创建到C：下， 内容如下，复制进去，然后保存！</p>
<p>title Install Ubuntu 9.04  </p>
<p>root (hd0,0)  </p>
<p>kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu-9.04-desktop-i386.iso ro quiet splash locale=zh_CN.UTF-8</p>
<p>initrd /initrd.lz  </p>
<p>boot  </p>
<p>3：把ubuntu-9.04-desktop-i386.iso里.disk文件夹里的文件解压到C：下；注意了，一定要去C盘看下.disk文件夹下的文件是不是还在.disk文件夹里，要是的话，就把它们提到C：下； </p>
<p>4：去掉该文件的隐含系统只读属性 windows 下，开始－&gt;运行－&gt;cmd , 后输入 attrib -r -h -s c:boot.ini 或者直接右键点击boot.ini文件，把只读去掉 在WINXP下修改boot.ini，在boot.ini文件最后一行后回车，加入C:grldr="Install Ubuntu 9.04 desktop"</p>
<p>5：重启电脑，然后选择Ubuntu启动项就可以了，然后就是进入到Ubuntu9.04桌面了，桌面上有个安装，打开它，然后有7步设置，搞到挂载的时候，我是遇到了无法挂载的情况， 我是这样解决的：同时按下Ctrl+Alt+F2,然后在：后输入  sudo umount -l /isodevice  输好后，然后回车，再同时按下 Ctrl+Alt+F7，回到安装界面，然后我就一路装下去了！然后就是设置用户名和密码，确认分区信息，完成后就开始安装了!</p>
<p>这时可能出现的问题：安装ubuntn时出现：正在配置apt。一直82%不动。 解决办法：安装的时候不要配置网络，安装完成之后再配置网络，安装中拔掉网线。 我这里安装时间不到10分钟，重启再次进入Ubuntu 9.04，更新完软件包，也就是20多分钟，然后就OK了！  问题1：无法挂载的情况，我是这样解决的：同时按下Ctrl+Alt+F2,然后在：后输入 sudo umount -l /isodevice 输好后，然后回车，再同时按下 Ctrl+Alt+F7，回到安装界面，然后我就一路装下去了！然后就是设置用户名和密码，确认分区信息，完成后就开始安装了！我这里安装时间不到10分钟，重启再次进入Ubuntu 9.04，更新完软件包，也就是20多分钟，然后就OK了！  问题2：重启后不出现WINDOWS启动菜单 在端口里输入了 sudo gedit /boot/grub/menu.lst 然后输入密码，就打开了 menu.lst 文件， 然后在文件内容的最后加入如下内容：  title Windows xp root (hd0,0) makeactive chainloader +1  然后保存文件，重启！OK，启动菜单出来啦，双系统又并存啊！！</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/grub-ubuntuwin7.html" class="u-url">grub-ubuntuwin7</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/grub-ubuntuwin7.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>Ubuntu与Win7双系统，在重装Win7后会出现Ubuntu的Linux不能启动的情况，这是因为grub引导被覆盖了。
   要修复grub需要一张Ubuntu的LiveCD（安装光盘），用LiveCD启动电脑，进入试用Ubuntu，进入之后打开终端，做如下几步：
   1、输入sudo -i取得权限；
   2、找到安装ubuntu的挂载点，我的 / 在sda9，/boot 在sda8里面，如果不清楚可以用命令 fdisk -l 来查看；
   3、挂载分区分别输入命令：
        mount /dev/sda9 /mnt                (mount跟sda9之后分别有一个空格）
        mount /dev/sda8 /mnt/boot        (如果没有/boot分区可以省略这一步）
   4、安装grub输入命令：
        grub-install --root-directory=/mnt /dev/sda
        (--跟/dev/sda之前分别有一个空格，sda指的是第一硬盘，如果想安装在第二硬盘里面就用sdb）
         注：如果grub.cfg己丢失，或grub.cfg出现错误，需要重建的继续执行下面操作：
               mount –bind /proc /mnt/proc
               mount –bind /dev /mnt/dev
               mount –bind /sys /mnt/sys
               chroot /mnt update-grub
               umount /mnt/sys
               umount /mnt/dev
               umount /mnt/proc
               exit
   5、重启电脑，进入熟悉的ubuntu
   6、打开终端输入命令 sudo update-grub </p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/hefei-eld-sister.html" class="u-url">hefei-eld-sister</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/hefei-eld-sister.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>合肥瑶海区当涂路与临泉路交叉口璟泰赢家广场8B栋1101室</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/ipython-default-editor.html" class="u-url">ipython-default-editor</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/ipython-default-editor.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>%config TerminalInteractiveShell.editor = 'sublime_text'</p>
<p>1.23 就是这么简单</p>
<p><del datetime="2014-01-24T06:56:01+00:00">1.24 这样设置不会永久生效</del>可以永久生效</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/jiaoyulu.html" class="u-url">jiaoyulu</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/jiaoyulu.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>习近平 一九九〇·七·十五
中夜，读《人民呼唤焦裕禄》一文，是时霁月如银，文思萦系……</p>
<p>魂飞万里，</p>
<p>盼归来，</p>
<p>此水此山此地。</p>
<p>百姓谁不爱好官？</p>
<p>把泪焦桐成雨。①</p>
<p>生也沙丘，</p>
<p>死也沙丘，</p>
<p>父老生死系。②</p>
<p>暮雪朝霜，</p>
<p>毋改英雄意气！</p>
<p>依然月明如昔，</p>
<p>思君夜夜，</p>
<p>肝胆长如洗。</p>
<p>路漫漫其修远矣，</p>
<p>两袖清风来去。</p>
<p>为官一任，</p>
<p>造福一方，</p>
<p>遂了平生意。</p>
<p>绿我涓滴，</p>
<p>会它千倾澄碧。</p>
<p>注：①焦裕禄当年为了防风固沙，帮助农民摆脱贫困，提倡种植泡桐。如今，兰考泡桐如海，焦裕禄当年亲手栽下的幼桐已长成合抱大树，人们亲切地叫它“焦桐”。</p>
<p>②焦裕禄临终前说“我死后只有一个要求，要求党组织把我运回兰考，埋在沙丘上。活着我没有治好沙丘，死了也要看着你们把沙丘治好！”</p>
<p>（原载一九九〇年七月十六日《福州晚报》一版）</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/kindle3-ubuntu.html" class="u-url">kindle3-ubuntu</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/kindle3-ubuntu.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>1.下载： 用安装包自己编译 k3flasher，再sudo chmod +x k3flasher，需要可执行权限，这步非常重要啊！
2. 在windows下安装好ATK后，从c:Program FilesfreescaleAdvancedToolKit-STDimage目录下把mx35to2_mmc.bin拷到k3flasher同一个目录。</p>
<ol>
<li>Ubuntu下使用方法很简单：</li>
</ol>
<p>sudo ./k3flasher mx35to2_mmc.bin program kernel kernel3.3.bin</p>
<p>sudo ./k3flasher mx35to2_mmc.bin program rootfs rootfs3.3.bin</p>
<p>各种纠结，终于解决了</p>
<p>wait ok</p>
<p>只需USB线对Kindle 3修砖的小白教程</p>
<p>http://bbs.xiaomi.cn/forum.php?mod=viewthread&amp;tid=8159110</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/komodo-ubuntu.html" class="u-url">komodo-ubuntu</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/komodo-ubuntu.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>sudo add-apt-repository ppa:mystic-mirage/komodo-edit
sudo apt-get update</p>
<p>sudo apt-get install komodo-edit</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/linux-mint-15-broadcom43xx-wifi.html" class="u-url">linux-mint-15-broadcom43xx-wifi</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/linux-mint-15-broadcom43xx-wifi.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>sudo apt-get install b43-fwcutter firmware-b43-installer</p>
<p>http://ydwcn.iteye.com/blog/1126278</p>
<p>1、查看网卡类型：lspci -vnn | grep 14e4，确定是Broadcom43xx网卡类型</p>
<p>2、查看ubuntu内核版本：uname -a，我的版本是Linux ubuntu 2.6.35-22-generic</p>
<p>3、安装b43-fwcutter： Install b43-fwcutter</p>
<p>写道</p>
<p>wget http://bu3sch.de/b43/fwcutter/b43-fwcutter-013.tar.bz2</p>
<p>tar xjf b43-fwcutter-013.tar.bz2</p>
<p>cd b43-fwcutter-013</p>
<p>make</p>
<p>cd ..</p>
<p>注意：这一步要记住b43-fwcutter安装路径，下面会用到。</p>
<p>4、根据内核版本选择安装驱动版本：</p>
<p>注意：下面的安装路径一定要在/lib/firmware/下执行：</p>
<p>a、如果你的版本你是linux-2.6.24，执行：</p>
<p>export FIRMWARE_INSTALL_DIR="/lib/firmware"</p>
<p>wget http://downloads.openwrt.org/sources/broadcom-wl-4.80.53.0.tar.bz2</p>
<p>tar xjf broadcom-wl-4.80.53.0.tar.bz2</p>
<p>cd broadcom-wl-4.80.53.0/kmod</p>
<p>sudo ../../b43-fwcutter-013/b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" wl_apsta.o</p>
<p>b、如果你的版本是linux-2.6.25 或是更高，执行：（我的版本就是选择这里）</p>
<p>export FIRMWARE_INSTALL_DIR="/lib/firmware"</p>
<p>wget http://mirror2.openwrt.org/sources/broadcom-wl-4.150.10.5.tar.bz2</p>
<p>tar xjf broadcom-wl-4.150.10.5.tar.bz2</p>
<p>cd broadcom-wl-4.150.10.5/driver</p>
<p><strong><em>*</em>* b43-fwcutter -w /tmp FILE extract and write firmware to /tmp. </strong>****</p>
<p>sudo ../../b43-fwcutter-013/b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" wl_apsta_mimo.o</p>
<p>如果到这里，执行成功，会看到解析出好多*.fw文件，没有报警信息，这就大功告成了！</p>
<p>注意：../../b43-fwcutter-013，这个地方一定要选择自己安装b43-fwcutter的路径。</p>
<p>好辛苦啊，整了好几天啊，希望这个对初学ubuntu的朋友们有帮助。</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/luyou.html" class="u-url">luyou</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/luyou.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>当年万里觅封侯，匹马戍梁州。
关河梦断何处，尘暗旧貂裘。</p>
<p>胡未灭，鬓先秋，泪空流。</p>
<p>此身谁料，心在天山，身老沧洲！</p>
</div>
    </div>
    </article><article class="h-entry post-text"><header><h1 class="p-name entry-title"><a href="posts/mail-for-bolin.html" class="u-url">mail-for-bolin</a></h1>
        <div class="metadata">
            <p class="byline author vcard"><span class="byline-name fn">
                Tao Junjie
            </span></p>
            <p class="dateline"><a href="posts/mail-for-bolin.html" rel="bookmark"><time class="published dt-published" datetime="2010-01-01T13:44:27+08:00" title="2010-01-01 13:44">2010-01-01 13:44</time></a></p>
        </div>
    </header><div class="p-summary entry-summary">
    <div>
<p></p>
<p>北京市海淀区东北旺西路8号中关村软件园28号楼环宇大厦
TEA Team收</p>
<p>010-60959407</p>
</div>
    </div>
    </article>
</div>

        <nav class="postindexpager"><ul class="pager">
<li class="previous">
                <a href="index-6.html" rel="prev">Newer posts</a>
            </li>
            <li class="next">
                <a href="index-4.html" rel="next">Older posts</a>
            </li>
        </ul></nav>
</div>
        <!--End of body content-->

        <footer id="footer">
            Contents © 2017         <a href="mailto:muxuezi@gmail.com">Tao Junjie</a> - Powered by         <a href="https://getnikola.com" rel="nofollow">Nikola</a>         
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0">
<img alt="Creative Commons License BY-NC-SA" style="border-width:0; margin-bottom:12px;" src="http://i.creativecommons.org/l/by-nc-sa/4.0/80x15.png"></a>
            
        </footer>
</div>
</div>


            <script src="assets/js/all-nocdn.js"></script><script>$('a.image-reference:not(.islink) img:not(.islink)').parent().colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script><!-- fancy dates --><script>
    moment.locale("en");
    fancydates(0, "YYYY-MM-DD HH:mm");
    </script><!-- end fancy dates --><script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-51330059-1', 'auto');
  ga('send', 'pageview');

</script>
</body>
</html>
